using Core.Domain.Entities;
using FluentNHibernate.Mapping;

namespace DataMain.Mappings
{
  public class BallotSetMap : ClassMap<BallotSet>
  {
    public BallotSetMap()
    {
      Id(x => x.Id);
      References(x => x.Election);
      HasMany(x => x.Ballots).Inverse().Cascade.All();
    }
  }
}